
file(GLOB_RECURSE SRC_LIST
    "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
    "${CMAKE_CURRENT_SOURCE_DIR}/polygon_partition/*.cpp"
    )


if(USE_SOLOTION_CONFIG_SRC)
    INCLUDE_DIRECTORIES(${cleanpack3_SOURCE_DIR}/solution_config/src)
    LINK_DIRECTORIES(${cleanpack3_SOURCE_DIR}/bin/${BUILD_SYS_PATH})
else()
    INCLUDE_DIRECTORIES(${INNER_LIB_PATH}/include/solution_config_lib)
	LINK_DIRECTORIES(${INNER_LIB_PATH}/libs/solution_config_lib/${BUILD_SYS_PATH})
endif()

set(OpenCV_DIR "/usr/share/OpenCV")
find_package(OpenCV REQUIRED)
include_directories(
	${OpenCV_INCLUDE_DIRS}
    ../geometry_calculation/src
    ./polygon_partition
)


ADD_EXECUTABLE(test_geom ${SRC_LIST})
TARGET_LINK_LIBRARIES(test_geom cpc soc zmq geometry_calculation ${OpenCV_LIBRARIES})
 
